﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    /// <summary>
    /// 客户信息
    /// </summary>
    public class Client
    {
        public Client() { }
        public Client(int p1, int p2)
        {
            // TODO: Complete member initialization
            this.Id = p1;
            this.PersonalInformationId = p2;
        }

        public override bool Equals(object obj)
        {
            Client o = (Client)obj;
            return (this.Id == o.Id && this.PersonalInformationId == o.PersonalInformationId);
        }
        
        #region Basic Getters and Setters
        private int _id;                            // PK

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }


        private int _personalInformationId;         // FK 个人信息Id

        public int PersonalInformationId
        {
            get { return _personalInformationId; }
            set { _personalInformationId = value; }
        }
        #endregion

       

    }
}
